Changeset 42 for addons/isp/isp_demo.xml


Ignore:
Timestamp:
Sep 13, 2011, 2:10:45 PM (13 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • addons/isp/isp_demo.xml

    r41 r42  
    55        <record model="network.device.type" id="device_type_desktop_pc">
    66            <field name="name">Desktop computer</field>
    7             <field name="running_permanent">0</field>
     7            <field name="running_permanent" eval="False"/>
    88        </record>
    99        <record model="network.device.type" id="device_type_notebook">
    1010            <field name="name">Notebook</field>
    11             <field name="running_permanent">0</field>
     11            <field name="running_permanent" eval="False"/>
    1212        </record>
    1313        <record model="network.device.type" id="device_type_ipcam">
    1414            <field name="name">IP camera</field>
    15             <field name="running_permanent">1</field>
     15            <field name="running_permanent" eval="True"/>
    1616        </record>
    1717        <record model="network.device.type" id="device_type_printer">
    1818            <field name="name">Printer</field>
    19             <field name="running_permanent">0</field>
     19            <field name="running_permanent" eval="False"/>
    2020        </record>
    2121        <record model="network.device.type" id="device_type_server">
    2222            <field name="name">Server</field>
    23             <field name="running_permanent">1</field>
     23            <field name="running_permanent" eval="True"/>
    2424        </record>
    2525        <record model="network.device.type" id="device_type_switch">
    2626            <field name="name">Switch</field>
    27             <field name="running_permanent">1</field>
     27            <field name="running_permanent" eval="True"/>
    2828        </record>
    2929        <record model="network.device.type" id="device_type_router">
    3030            <field name="name">Router</field>
    31             <field name="running_permanent">1</field>
     31            <field name="running_permanent" eval="True"/>
    3232        </record>
    3333        <record model="network.device.type" id="device_type_tv">
    3434            <field name="name">Television</field>
    35             <field name="running_permanent">0</field>
     35            <field name="running_permanent" eval="False"/>
    3636        </record>
    3737        <record model="network.device.type" id="device_type_thermometer">
    3838            <field name="name">Thermometer</field>
    39             <field name="running_permanent">1</field>
     39            <field name="running_permanent" eval="True"/>
    4040        </record>
    4141        <record model="network.device.type" id="device_type_voip">
    4242            <field name="name">VoIP device</field>
    43             <field name="running_permanent">1</field>
     43            <field name="running_permanent" eval="True"/>
    4444        </record>
    4545       
     
    4747        <record model="network.interface.type" id="interface_type_ethernet_metalic">
    4848            <field name="name">Metalic ethernet</field>
    49             <field name="full_duplex">1</field>
     49            <field name="full_duplex" eval="True"/>
    5050        </record>
    5151        <record model="network.interface.type" id="interface_type_ethernet_wifi_b">
    5252            <field name="name">Wi-Fi 802.11b 11Mbit</field>
    53             <field name="full_duplex">0</field>
     53            <field name="full_duplex" eval="False"/>
    5454        </record>
    5555        <record model="network.interface.type" id="interface_type_ethernet_wifi_g">
    5656            <field name="name">Wi-Fi 802.11g 54Mbit</field>
    57             <field name="full_duplex">0</field>
     57            <field name="full_duplex" eval="False"/>
    5858        </record>
    5959        <record model="network.interface.type" id="interface_type_ethernet_wifi_a">
    6060            <field name="name">Wi-Fi 802.11a 54Mbit</field>
    61             <field name="full_duplex">0</field>
     61            <field name="full_duplex" eval="False"/>
    6262        </record>
    6363        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_150">
    6464            <field name="name">Wi-Fi 802.11n 150Mbit</field>
    65             <field name="full_duplex">0</field>
     65            <field name="full_duplex" eval="False"/>
    6666        </record>
    6767        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_300">
    6868            <field name="name">Wi-Fi 802.11n 300Mbit</field>
    69             <field name="full_duplex">0</field>
     69            <field name="full_duplex" eval="False"/>
    7070        </record>
    7171        <record model="network.interface.type" id="interface_type_optics">
    7272            <field name="name">Optic ethernet</field>
    73             <field name="full_duplex">1</field>
     73            <field name="full_duplex" eval="True"/>
    7474        </record>
    7575        <record model="network.interface.type" id="interface_type_wireless_10G">
    7676            <field name="name">Wireless 10 GHz</field>
    77             <field name="full_duplex">1</field>
     77            <field name="full_duplex" eval="True"/>
    7878        </record>
    7979        <record model="network.interface.type" id="interface_type_wireless_24G">
    8080            <field name="name">Wireless 24 GHz</field>
    81             <field name="full_duplex">1</field>
     81            <field name="full_duplex" eval="True"/>
    8282        </record>
    8383        <record model="network.interface.type" id="interface_type_wireless_80G">
    8484            <field name="name">Wireless 80 GHz</field>
    85             <field name="full_duplex">1</field>
     85            <field name="full_duplex" eval="True"/>
    8686        </record>
    8787        <record model="network.interface.type" id="interface_type_cdma">
    8888            <field name="name">CDMA 450 MHz</field>
    89             <field name="full_duplex">0</field>
     89            <field name="full_duplex" eval="False"/>
    9090        </record>
    9191        <record model="network.interface.type" id="interface_type_homeplug">
    9292            <field name="name">Homeplug over 230V</field>
    93             <field name="full_duplex">0</field>
     93            <field name="full_duplex" eval="False"/>
    9494        </record>
    9595        <record model="network.interface.type" id="interface_type_adsl">
    9696            <field name="name">ADSL</field>
    97             <field name="full_duplex">0</field>
     97            <field name="full_duplex" eval="False"/>
    9898        </record>
    9999        <record model="network.interface.type" id="interface_type_vdsl">
    100100            <field name="name">VDSL</field>
    101             <field name="full_duplex">0</field>
     101            <field name="full_duplex" eval="False"/>
    102102        </record>
    103103        <record model="network.interface.type" id="interface_type_3g">
    104104            <field name="name">3G (UTMS, HSDPA)</field>
    105             <field name="full_duplex">0</field>
     105            <field name="full_duplex" eval="False"/>
    106106        </record>
    107107        <record model="network.interface.type" id="interface_type_wimax">
    108108            <field name="name">WiMax</field>
    109             <field name="full_duplex">0</field>
     109            <field name="full_duplex" eval="False"/>
    110110        </record>
    111111        <record model="network.interface.type" id="interface_type_lte">
    112112            <field name="name">LTE</field>
    113             <field name="full_duplex">0</field>
     113            <field name="full_duplex" eval="False"/>
    114114        </record>
    115115       
     
    186186
    187187
    188         <record model="network.device" id="device_router">
    189             <field name="name">Router</field>
     188        <record model="network.device" id="device_router_praha">
     189            <field name="name">Router Praha</field>
    190190            <field name="type_id" ref="device_type_router"/>
    191191            <field name="position" ref="point_praha"/>
     192            <field name="partner_id" search="[]" model="res.partner"/>
     193        </record>
     194        <record model="network.device" id="device_router_brno">
     195            <field name="name">Router Brno</field>
     196            <field name="type_id" ref="device_type_router"/>
     197            <field name="position" ref="point_brno"/>
    192198            <field name="partner_id" search="[]" model="res.partner"/>
    193199        </record>
     
    214220            <field name="ipv6">2001:2442:C422::1</field>
    215221        </record>
     222        <record model="network.address" id="address_router4">
     223            <field name="name">router4</field>
     224            <field name="ipv4">10.0.0.2</field>
     225            <field name="ipv6">2001:2442:C422::2</field>
     226        </record>
    216227
    217228
    218229        <record model="network.link" id="interface_link1">
    219230            <field name="name">link1</field>
     231            <field name="point_ids" eval="[(4, ref('point_praha')),
     232                          (4, ref('point_ostrava'))]"/>
    220233        </record>
    221234        <record model="network.link" id="interface_link2">
     
    227240            <field name="name">eth0</field>
    228241            <field name="type_id" ref="interface_type_optics"/>
    229             <field name="device_id" ref="device_router"/>           
     242            <field name="device_id" ref="device_router_praha"/>           
    230243            <field name="mac">00:01:FE:32:56:26</field>
    231244            <field name="local_address_id" ref="address_router1"/>           
     
    235248            <field name="name">eth1</field>
    236249            <field name="type_id" ref="interface_type_wireless_10G"/>
    237             <field name="device_id" ref="device_router"/>           
     250            <field name="device_id" ref="device_router_praha"/>
    238251            <field name="mac">00:01:FE:32:56:27</field>
    239252            <field name="local_address_id" ref="address_router3"/>           
    240253            <field name="link_id" ref="interface_link2"/>                       
     254        </record>
     255        <record model="network.interface" id="interface_eth0">
     256            <field name="name">eth0</field>
     257            <field name="type_id" ref="interface_type_optics"/>
     258            <field name="device_id" ref="device_router_brno"/>           
     259            <field name="mac">00:01:FE:32:54:22</field>
     260            <field name="local_address_id" ref="address_router2"/>           
     261            <field name="link_id" ref="interface_link1"/>                       
    241262        </record>
    242263
     
    246267            <field name="type_id" ref="service_internet"/>
    247268            <field name="price">200</field>
    248             <field name="available">1</field>
     269            <field name="available" eval="True"/>
    249270        </record>
    250271        <record model="network.service" id="service_internet_2M">
     
    252273            <field name="type_id" ref="service_internet"/>
    253274            <field name="price">300</field>
    254             <field name="available">1</field>
     275            <field name="available" eval="True"/>
     276        </record>
     277
     278
     279        <record model="network.domain" id="domain_company">
     280            <field name="name">company.com</field>
     281        </record>
     282
     283
     284        <record model="network.subnet" id="service_subnet_main">
     285            <field name="name">Main subnet</field>
     286            <field name="address">192.168.0.0</field>
     287            <field name="prefix">24</field>
     288            <field name="dhcp_id" ref="address_router3"/>
     289            <field name="dns_ids" eval="[(4, ref('address_router1')),
     290              (4, ref('address_router2'))]"/>
     291            <field name="gateway_id" ref="address_router2"/>
     292            <field name="wins_id" ref="address_router3"/>
     293            <field name="domain_id" ref="domain_company"/>
     294            <field name="partner_id" search="[]" model="res.partner"/>
    255295        </record>
    256296    </data>
Note: See TracChangeset for help on using the changeset viewer.