Changeset 41 for addons/isp/isp_demo.xml


Ignore:
Timestamp:
Sep 13, 2011, 9:55:38 AM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Rozšířena funkčnost modulu ISP o GPS body a spoje.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • addons/isp/isp_demo.xml

    r16 r41  
    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>
    78        </record>
    89        <record model="network.device.type" id="device_type_notebook">
    910            <field name="name">Notebook</field>
     11            <field name="running_permanent">0</field>
    1012        </record>
    1113        <record model="network.device.type" id="device_type_ipcam">
    1214            <field name="name">IP camera</field>
     15            <field name="running_permanent">1</field>
    1316        </record>
    1417        <record model="network.device.type" id="device_type_printer">
    1518            <field name="name">Printer</field>
     19            <field name="running_permanent">0</field>
    1620        </record>
    1721        <record model="network.device.type" id="device_type_server">
    1822            <field name="name">Server</field>
     23            <field name="running_permanent">1</field>
    1924        </record>
    2025        <record model="network.device.type" id="device_type_switch">
    2126            <field name="name">Switch</field>
     27            <field name="running_permanent">1</field>
    2228        </record>
    2329        <record model="network.device.type" id="device_type_router">
    2430            <field name="name">Router</field>
     31            <field name="running_permanent">1</field>
    2532        </record>
    2633        <record model="network.device.type" id="device_type_tv">
    2734            <field name="name">Television</field>
     35            <field name="running_permanent">0</field>
    2836        </record>
    2937        <record model="network.device.type" id="device_type_thermometer">
    3038            <field name="name">Thermometer</field>
     39            <field name="running_permanent">1</field>
    3140        </record>
    3241        <record model="network.device.type" id="device_type_voip">
    3342            <field name="name">VoIP device</field>
    34         </record>
    35 
    36         <record model="network.interface.type" id="device_interface_ethernet_metalic">
     43            <field name="running_permanent">1</field>
     44        </record>
     45       
     46
     47        <record model="network.interface.type" id="interface_type_ethernet_metalic">
    3748            <field name="name">Metalic ethernet</field>
    38             <field name="full_duplex">true</field>
    39         </record>
    40         <record model="network.interface.type" id="device_interface_ethernet_wifi_b">
     49            <field name="full_duplex">1</field>
     50        </record>
     51        <record model="network.interface.type" id="interface_type_ethernet_wifi_b">
    4152            <field name="name">Wi-Fi 802.11b 11Mbit</field>
    42             <field name="full_duplex">false</field>
    43         </record>
    44         <record model="network.interface.type" id="device_interface_ethernet_wifi_g">
     53            <field name="full_duplex">0</field>
     54        </record>
     55        <record model="network.interface.type" id="interface_type_ethernet_wifi_g">
    4556            <field name="name">Wi-Fi 802.11g 54Mbit</field>
    46             <field name="full_duplex">false</field>
    47         </record>
    48         <record model="network.interface.type" id="device_interface_ethernet_wifi_a">
     57            <field name="full_duplex">0</field>
     58        </record>
     59        <record model="network.interface.type" id="interface_type_ethernet_wifi_a">
    4960            <field name="name">Wi-Fi 802.11a 54Mbit</field>
    50             <field name="full_duplex">false</field>
    51         </record>
    52         <record model="network.interface.type" id="device_interface_ethernet_wifi_n_150">
     61            <field name="full_duplex">0</field>
     62        </record>
     63        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_150">
    5364            <field name="name">Wi-Fi 802.11n 150Mbit</field>
    54             <field name="full_duplex">false</field>
    55         </record>
    56         <record model="network.interface.type" id="device_interface_ethernet_wifi_n_300">
     65            <field name="full_duplex">0</field>
     66        </record>
     67        <record model="network.interface.type" id="interface_type_ethernet_wifi_n_300">
    5768            <field name="name">Wi-Fi 802.11n 300Mbit</field>
    58             <field name="full_duplex">false</field>
    59         </record>
    60         <record model="network.interface.type" id="device_interface_optics">
     69            <field name="full_duplex">0</field>
     70        </record>
     71        <record model="network.interface.type" id="interface_type_optics">
    6172            <field name="name">Optic ethernet</field>
    62             <field name="full_duplex">true</field>
    63         </record>
    64         <record model="network.interface.type" id="device_interface_wireless_10G">
     73            <field name="full_duplex">1</field>
     74        </record>
     75        <record model="network.interface.type" id="interface_type_wireless_10G">
    6576            <field name="name">Wireless 10 GHz</field>
    66             <field name="full_duplex">true</field>
    67         </record>
    68         <record model="network.interface.type" id="device_interface_wireless_24G">
     77            <field name="full_duplex">1</field>
     78        </record>
     79        <record model="network.interface.type" id="interface_type_wireless_24G">
    6980            <field name="name">Wireless 24 GHz</field>
    70             <field name="full_duplex">true</field>
    71         </record>
    72         <record model="network.interface.type" id="device_interface_wireless_80G">
     81            <field name="full_duplex">1</field>
     82        </record>
     83        <record model="network.interface.type" id="interface_type_wireless_80G">
    7384            <field name="name">Wireless 80 GHz</field>
    74             <field name="full_duplex">true</field>
    75         </record>
    76         <record model="network.interface.type" id="device_interface_cdma">
     85            <field name="full_duplex">1</field>
     86        </record>
     87        <record model="network.interface.type" id="interface_type_cdma">
    7788            <field name="name">CDMA 450 MHz</field>
    78             <field name="full_duplex">false</field>
    79         </record>
    80         <record model="network.interface.type" id="device_interface_homeplug">
     89            <field name="full_duplex">0</field>
     90        </record>
     91        <record model="network.interface.type" id="interface_type_homeplug">
    8192            <field name="name">Homeplug over 230V</field>
    82             <field name="full_duplex">false</field>
    83         </record>
    84         <record model="network.interface.type" id="device_interface_adsl">
     93            <field name="full_duplex">0</field>
     94        </record>
     95        <record model="network.interface.type" id="interface_type_adsl">
    8596            <field name="name">ADSL</field>
    86             <field name="full_duplex">false</field>
    87         </record>
    88         <record model="network.interface.type" id="device_interface_vdsl">
     97            <field name="full_duplex">0</field>
     98        </record>
     99        <record model="network.interface.type" id="interface_type_vdsl">
    89100            <field name="name">VDSL</field>
    90             <field name="full_duplex">false</field>
    91         </record>
    92         <record model="network.interface.type" id="device_interface_3g">
     101            <field name="full_duplex">0</field>
     102        </record>
     103        <record model="network.interface.type" id="interface_type_3g">
    93104            <field name="name">3G (UTMS, HSDPA)</field>
    94             <field name="full_duplex">false</field>
    95         </record>
    96         <record model="network.interface.type" id="device_interface_wimax">
     105            <field name="full_duplex">0</field>
     106        </record>
     107        <record model="network.interface.type" id="interface_type_wimax">
    97108            <field name="name">WiMax</field>
    98             <field name="full_duplex">false</field>
    99         </record>
    100         <record model="network.interface.type" id="device_interface_lte">
     109            <field name="full_duplex">0</field>
     110        </record>
     111        <record model="network.interface.type" id="interface_type_lte">
    101112            <field name="name">LTE</field>
    102             <field name="full_duplex">false</field>
    103         </record>
    104 
    105         <record model="network.service.type" id="device_service_internet">
     113            <field name="full_duplex">0</field>
     114        </record>
     115       
     116
     117        <record model="network.service.type" id="service_internet">
    106118            <field name="name">Internet</field>
    107119        </record>
    108         <record model="network.service.type" id="device_service_voip">
     120        <record model="network.service.type" id="service_voip">
    109121            <field name="name">VoIP</field>
    110122        </record>
    111         <record model="network.service.type" id="device_service_iptv">
     123        <record model="network.service.type" id="service_iptv">
    112124            <field name="name">IPTV</field>
    113125        </record>
    114         <record model="network.service.type" id="device_service_ipcam">
     126        <record model="network.service.type" id="service_ipcam">
    115127            <field name="name">IP camera</field>
    116128        </record>
    117         <record model="network.service.type" id="device_service_server_hosting">
     129        <record model="network.service.type" id="service_server_hosting">
    118130            <field name="name">Server hosting</field>
    119131        </record>
    120         <record model="network.service.type" id="device_service_vps_hosting">
     132        <record model="network.service.type" id="service_vps_hosting">
    121133            <field name="name">VPS server hosting</field>
    122134        </record>
    123         <record model="network.service.type" id="device_service_server_housing">
     135        <record model="network.service.type" id="service_server_housing">
    124136            <field name="name">Server housing</field>
    125137        </record>
    126         <record model="network.service.type" id="device_service_web_hosting">
     138        <record model="network.service.type" id="service_web_hosting">
    127139            <field name="name">Web hosting</field>
    128140        </record>
    129         <record model="network.service.type" id="device_service_domain_reg">
     141        <record model="network.service.type" id="service_domain_reg">
    130142            <field name="name">Domain registration</field>
    131143        </record>
    132 
    133         <record model="network.billing.period" id="device_billing_period_none">
     144       
     145
     146        <record model="network.billing.period" id="billing_period_none">
    134147            <field name="name">None</field>
    135         </record>
    136         <record model="network.billing.period" id="device_billing_period_day">
    137             <field name="name">Daily</field>
    138         </record>
    139         <record model="network.billing.period" id="device_billing_period_week">
    140             <field name="name">Weekly</field>
    141         </record>
    142         <record model="network.billing.period" id="device_billing_period_month">
     148            <field name="months">0</field>
     149        </record>
     150        <record model="network.billing.period" id="billing_period_month">
    143151            <field name="name">Monthly</field>
    144         </record>
    145         <record model="network.billing.period" id="device_billing_period_querter">
     152            <field name="months">1</field>
     153        </record>
     154        <record model="network.billing.period" id="billing_period_querter">
    146155            <field name="name">Quarterly</field>
    147         </record>
    148         <record model="network.billing.period" id="device_billing_period_half_year">
     156            <field name="months">3</field>
     157        </record>
     158        <record model="network.billing.period" id="billing_period_half_year">
    149159            <field name="name">Half-yearly</field>
    150         </record>
    151         <record model="network.billing.period" id="device_billing_period_year">
     160            <field name="months">6</field>
     161        </record>
     162        <record model="network.billing.period" id="billing_period_year">
    152163            <field name="name">Yearly</field>
     164            <field name="months">12</field>
     165        </record>
     166       
     167       
     168        <record model="network.point" id="point_praha">
     169            <field name="name">Praha</field>
     170            <field name="latitude">50.120578</field>
     171            <field name="longitude">14.395981</field>
     172            <field name="address_id" search="[]" model="res.partner.address"/>
     173        </record>
     174        <record model="network.point" id="point_brno">
     175            <field name="name">Brno</field>
     176            <field name="latitude">49.205935</field>
     177            <field name="longitude">16.608353</field>
     178            <field name="address_id" search="[]" model="res.partner.address"/>
     179        </record>
     180        <record model="network.point" id="point_ostrava">
     181            <field name="name">Ostrava</field>
     182            <field name="latitude">49.822037</field>
     183            <field name="longitude">18.250580</field>
     184            <field name="address_id" search="[]" model="res.partner.address"/>
     185        </record>
     186
     187
     188        <record model="network.device" id="device_router">
     189            <field name="name">Router</field>
     190            <field name="type_id" ref="device_type_router"/>
     191            <field name="position" ref="point_praha"/>
     192            <field name="partner_id" search="[]" model="res.partner"/>
     193        </record>
     194
     195
     196        <record model="network.address" id="address_google">
     197            <field name="name">base</field>
     198            <field name="ipv4">74.125.39.103</field>
     199            <field name="ipv6">2001:4860:b002::68</field>
     200        </record>
     201        <record model="network.address" id="address_router1">
     202            <field name="name">router1</field>
     203            <field name="ipv4">192.168.0.1</field>
     204            <field name="ipv6">2001:FFFF:b002::1</field>
     205        </record>
     206        <record model="network.address" id="address_router2">
     207            <field name="name">router2</field>
     208            <field name="ipv4">192.168.0.2</field>
     209            <field name="ipv6">2001:FFFF:b002::2</field>
     210        </record>
     211        <record model="network.address" id="address_router3">
     212            <field name="name">router3</field>
     213            <field name="ipv4">10.0.0.1</field>
     214            <field name="ipv6">2001:2442:C422::1</field>
     215        </record>
     216
     217
     218        <record model="network.link" id="interface_link1">
     219            <field name="name">link1</field>
     220        </record>
     221        <record model="network.link" id="interface_link2">
     222            <field name="name">link2</field>
     223        </record>
     224       
     225       
     226        <record model="network.interface" id="interface_eth0">
     227            <field name="name">eth0</field>
     228            <field name="type_id" ref="interface_type_optics"/>
     229            <field name="device_id" ref="device_router"/>           
     230            <field name="mac">00:01:FE:32:56:26</field>
     231            <field name="local_address_id" ref="address_router1"/>           
     232            <field name="link_id" ref="interface_link1"/>                       
     233        </record>
     234        <record model="network.interface" id="interface_eth0">
     235            <field name="name">eth1</field>
     236            <field name="type_id" ref="interface_type_wireless_10G"/>
     237            <field name="device_id" ref="device_router"/>           
     238            <field name="mac">00:01:FE:32:56:27</field>
     239            <field name="local_address_id" ref="address_router3"/>           
     240            <field name="link_id" ref="interface_link2"/>                       
     241        </record>
     242
     243
     244        <record model="network.service" id="service_internet_1M">
     245            <field name="name">Internet 1Mbit</field>
     246            <field name="type_id" ref="service_internet"/>
     247            <field name="price">200</field>
     248            <field name="available">1</field>
     249        </record>
     250        <record model="network.service" id="service_internet_2M">
     251            <field name="name">Internet 2Mbit</field>
     252            <field name="type_id" ref="service_internet"/>
     253            <field name="price">300</field>
     254            <field name="available">1</field>
    153255        </record>
    154256    </data>
Note: See TracChangeset for help on using the changeset viewer.