# -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## OS.FreeBSD.get_vlans test
## Auto-generated by manage.py debug-script at 2011-02-21 15:59:37
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##----------------------------------------------------------------------
from noc.lib.test import ScriptTestCase
class OS_FreeBSD_get_vlans_Test(ScriptTestCase):
    script="OS.FreeBSD.get_vlans"
    vendor="OS"
    platform='amd64'
    version='8.2-PRERELEASE'
    input={}
    result=[{'name': 'em0.256', 'vlan_id': 256}]
    motd='\n'
    cli={
## '/sbin/ifconfig'
'/sbin/ifconfig': """ /sbin/ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
\tdescription: Inner network
\toptions=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
\tether 00:e0:81:40:8d:56
\tinet 10.111.0.14 netmask 0xffffff00 broadcast 10.111.0.255
\tmedia: Ethernet autoselect (1000baseT <full-duplex>)
\tstatus: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
\toptions=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
\tether 00:e0:81:40:8d:57
\tmedia: Ethernet autoselect
\tstatus: no carrier
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
\toptions=3<RXCSUM,TXCSUM>
\tinet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
\tinet6 ::1 prefixlen 128 
\tinet 127.0.0.1 netmask 0xff000000 
\tnd6 options=3<PERFORMNUD,ACCEPT_RTADV>
em0.256: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
\toptions=3<RXCSUM,TXCSUM>
\tether 00:e0:81:40:8d:56
\tinet 10.116.0.211 netmask 0xffff0000 broadcast 10.116.255.255
\tmedia: Ethernet autoselect (1000baseT <full-duplex>)
\tstatus: active
\tvlan: 256 parent interface: em0""",
}
    snmp_get={}
    snmp_getnext={}
