def __init__(self): super( CISCOETHERLIKEEXTMIB.CeeDot3PauseExtTable. CeeDot3PauseExtEntry, self).__init__() self.yang_name = "ceeDot3PauseExtEntry" self.yang_parent_name = "ceeDot3PauseExtTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['dot3statsindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('dot3statsindex', (YLeaf(YType.str, 'dot3StatsIndex'), ['int'])), ('ceedot3pauseextadminmode', (YLeaf(YType.bits, 'ceeDot3PauseExtAdminMode'), ['Bits'])), ('ceedot3pauseextopermode', (YLeaf(YType.bits, 'ceeDot3PauseExtOperMode'), ['Bits'])), ]) self.dot3statsindex = None self.ceedot3pauseextadminmode = Bits() self.ceedot3pauseextopermode = Bits() self._segment_path = lambda: "ceeDot3PauseExtEntry" + "[dot3StatsIndex='" + str( self.dot3statsindex) + "']" self._absolute_path = lambda: "CISCO-ETHERLIKE-EXT-MIB:CISCO-ETHERLIKE-EXT-MIB/ceeDot3PauseExtTable/%s" % self._segment_path( ) self._is_frozen = True
def __init__(self): super(CISCOOSPFTRAPMIB.Cospftrapcontrol, self).__init__() self.yang_name = "cospfTrapControl" self.yang_parent_name = "CISCO-OSPF-TRAP-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_container_classes = OrderedDict([]) self._child_list_classes = OrderedDict([]) self._leafs = OrderedDict([ ('cospfsettrap', YLeaf(YType.bits, 'cospfSetTrap')), ('cospfconfigerrortype', YLeaf(YType.enumeration, 'cospfConfigErrorType')), ('cospfpackettype', YLeaf(YType.enumeration, 'cospfPacketType')), ('cospfpacketsrc', YLeaf(YType.str, 'cospfPacketSrc')), ]) self.cospfsettrap = Bits() self.cospfconfigerrortype = None self.cospfpackettype = None self.cospfpacketsrc = None self._segment_path = lambda: "cospfTrapControl" self._absolute_path = lambda: "CISCO-OSPF-TRAP-MIB:CISCO-OSPF-TRAP-MIB/%s" % self._segment_path( )
def test_bits_leaflist(self): # User needs to append Bits instance manually to bits leaflist. runner = Runner() bits_0 = Bits() bits_1 = Bits() bits_0['disable-nagle'] = True bits_1['auto-sense-speed'] = True runner.ytypes.built_in_t.bits_llist.extend([bits_0, bits_1]) self.crud.create(self.ncc, runner) # Read into Runner1 runner1 = Runner() runner1 = self.crud.read(self.ncc, runner1) # Compare runners self.assertEqual(runner, runner1)
def __init__(self): super( ETHERWIS.EtherWisPathCurrentTable.EtherWisPathCurrentEntry, self).__init__() self.yang_name = "etherWisPathCurrentEntry" self.yang_parent_name = "etherWisPathCurrentTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['ifindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('ifindex', YLeaf(YType.str, 'ifIndex')), ('etherwispathcurrentstatus', YLeaf(YType.bits, 'etherWisPathCurrentStatus')), ('etherwispathcurrentj1transmitted', YLeaf(YType.str, 'etherWisPathCurrentJ1Transmitted')), ('etherwispathcurrentj1received', YLeaf(YType.str, 'etherWisPathCurrentJ1Received')), ]) self.ifindex = None self.etherwispathcurrentstatus = Bits() self.etherwispathcurrentj1transmitted = None self.etherwispathcurrentj1received = None self._segment_path = lambda: "etherWisPathCurrentEntry" + "[ifIndex='" + str( self.ifindex) + "']" self._absolute_path = lambda: "ETHER-WIS:ETHER-WIS/etherWisPathCurrentTable/%s" % self._segment_path( )
def __init__(self): super(ENTITYSTATEMIB.EntStateTable.EntStateEntry, self).__init__() self.yang_name = "entStateEntry" self.yang_parent_name = "entStateTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['entphysicalindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('entphysicalindex', (YLeaf(YType.str, 'entPhysicalIndex'), ['int'])), ('entstatelastchanged', (YLeaf(YType.str, 'entStateLastChanged'), ['str'])), ('entstateadmin', (YLeaf(YType.enumeration, 'entStateAdmin'), [('ydk.models.cisco_ios_xe.ENTITY_STATE_TC_MIB', 'EntityAdminState', '')])), ('entstateoper', (YLeaf(YType.enumeration, 'entStateOper'), [('ydk.models.cisco_ios_xe.ENTITY_STATE_TC_MIB', 'EntityOperState', '')])), ('entstateusage', (YLeaf(YType.enumeration, 'entStateUsage'), [('ydk.models.cisco_ios_xe.ENTITY_STATE_TC_MIB', 'EntityUsageState', '')])), ('entstatealarm', (YLeaf(YType.bits, 'entStateAlarm'), ['Bits'])), ('entstatestandby', (YLeaf(YType.enumeration, 'entStateStandby'), [('ydk.models.cisco_ios_xe.ENTITY_STATE_TC_MIB', 'EntityStandbyStatus', '')])), ]) self.entphysicalindex = None self.entstatelastchanged = None self.entstateadmin = None self.entstateoper = None self.entstateusage = None self.entstatealarm = Bits() self.entstatestandby = None self._segment_path = lambda: "entStateEntry" + "[entPhysicalIndex='" + str(self.entphysicalindex) + "']" self._absolute_path = lambda: "ENTITY-STATE-MIB:ENTITY-STATE-MIB/entStateTable/%s" % self._segment_path() self._is_frozen = True
def __init__(self): super(CISCOOSPFTRAPMIB.CospfTrapControl, self).__init__() self.yang_name = "cospfTrapControl" self.yang_parent_name = "CISCO-OSPF-TRAP-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('cospfsettrap', (YLeaf(YType.bits, 'cospfSetTrap'), ['Bits'])), ('cospfconfigerrortype', (YLeaf(YType.enumeration, 'cospfConfigErrorType'), [('ydk.models.cisco_ios_xe.CISCO_OSPF_TRAP_MIB', 'CISCOOSPFTRAPMIB', 'CospfTrapControl.CospfConfigErrorType')])), ('cospfpackettype', (YLeaf(YType.enumeration, 'cospfPacketType'), [('ydk.models.cisco_ios_xe.CISCO_OSPF_TRAP_MIB', 'CISCOOSPFTRAPMIB', 'CospfTrapControl.CospfPacketType')])), ('cospfpacketsrc', (YLeaf(YType.str, 'cospfPacketSrc'), ['str'])), ]) self.cospfsettrap = Bits() self.cospfconfigerrortype = None self.cospfpackettype = None self.cospfpacketsrc = None self._segment_path = lambda: "cospfTrapControl" self._absolute_path = lambda: "CISCO-OSPF-TRAP-MIB:CISCO-OSPF-TRAP-MIB/%s" % self._segment_path( ) self._is_frozen = True
def __init__(self): super(CISCOCDPMIB.CdpGlobal, self).__init__() self.yang_name = "cdpGlobal" self.yang_parent_name = "CISCO-CDP-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('cdpglobalrun', YLeaf(YType.boolean, 'cdpGlobalRun')), ('cdpglobalmessageinterval', YLeaf(YType.int32, 'cdpGlobalMessageInterval')), ('cdpglobalholdtime', YLeaf(YType.int32, 'cdpGlobalHoldTime')), ('cdpglobaldeviceid', YLeaf(YType.str, 'cdpGlobalDeviceId')), ('cdpgloballastchange', YLeaf(YType.uint32, 'cdpGlobalLastChange')), ('cdpglobaldeviceidformatcpb', YLeaf(YType.bits, 'cdpGlobalDeviceIdFormatCpb')), ('cdpglobaldeviceidformat', YLeaf(YType.enumeration, 'cdpGlobalDeviceIdFormat')), ]) self.cdpglobalrun = None self.cdpglobalmessageinterval = None self.cdpglobalholdtime = None self.cdpglobaldeviceid = None self.cdpgloballastchange = None self.cdpglobaldeviceidformatcpb = Bits() self.cdpglobaldeviceidformat = None self._segment_path = lambda: "cdpGlobal" self._absolute_path = lambda: "CISCO-CDP-MIB:CISCO-CDP-MIB/%s" % self._segment_path()
def __init__(self): super(PBRIDGEMIB.Dot1dExtBase, self).__init__() self.yang_name = "dot1dExtBase" self.yang_parent_name = "P-BRIDGE-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('dot1ddevicecapabilities', (YLeaf(YType.bits, 'dot1dDeviceCapabilities'), ['Bits'])), ('dot1dtrafficclassesenabled', (YLeaf(YType.boolean, 'dot1dTrafficClassesEnabled'), ['bool'])), ('dot1dgmrpstatus', (YLeaf(YType.enumeration, 'dot1dGmrpStatus'), [('ydk.models.cisco_ios_xe.P_BRIDGE_MIB', 'EnabledStatus', '')])), ]) self.dot1ddevicecapabilities = Bits() self.dot1dtrafficclassesenabled = None self.dot1dgmrpstatus = None self._segment_path = lambda: "dot1dExtBase" self._absolute_path = lambda: "P-BRIDGE-MIB:P-BRIDGE-MIB/%s" % self._segment_path( ) self._is_frozen = True
def __init__(self): super( CISCOIETFPWENETMIB.CpwVcEnetMplsPriMappingTable. CpwVcEnetMplsPriMappingTableEntry, self).__init__() self.yang_name = "cpwVcEnetMplsPriMappingTableEntry" self.yang_parent_name = "cpwVcEnetMplsPriMappingTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['cpwvcindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('cpwvcindex', YLeaf(YType.str, 'cpwVcIndex')), ('cpwvcenetmplsprimapping', YLeaf(YType.bits, 'cpwVcEnetMplsPriMapping')), ('cpwvcenetmplsprimappingrowstatus', YLeaf(YType.enumeration, 'cpwVcEnetMplsPriMappingRowStatus')), ('cpwvcenetmplsprimappingstoragetype', YLeaf(YType.enumeration, 'cpwVcEnetMplsPriMappingStorageType')), ]) self.cpwvcindex = None self.cpwvcenetmplsprimapping = Bits() self.cpwvcenetmplsprimappingrowstatus = None self.cpwvcenetmplsprimappingstoragetype = None self._segment_path = lambda: "cpwVcEnetMplsPriMappingTableEntry" + "[cpwVcIndex='" + str( self.cpwvcindex) + "']" self._absolute_path = lambda: "CISCO-IETF-PW-ENET-MIB:CISCO-IETF-PW-ENET-MIB/cpwVcEnetMplsPriMappingTable/%s" % self._segment_path( )
def __init__(self): super(ENTITYSTATEMIB.Entstatetable.Entstateentry, self).__init__() self.yang_name = "entStateEntry" self.yang_parent_name = "entStateTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['entphysicalindex'] self._child_container_classes = OrderedDict([]) self._child_list_classes = OrderedDict([]) self._leafs = OrderedDict([ ('entphysicalindex', YLeaf(YType.str, 'entPhysicalIndex')), ('entstatelastchanged', YLeaf(YType.str, 'entStateLastChanged')), ('entstateadmin', YLeaf(YType.enumeration, 'entStateAdmin')), ('entstateoper', YLeaf(YType.enumeration, 'entStateOper')), ('entstateusage', YLeaf(YType.enumeration, 'entStateUsage')), ('entstatealarm', YLeaf(YType.bits, 'entStateAlarm')), ('entstatestandby', YLeaf(YType.enumeration, 'entStateStandby')), ]) self.entphysicalindex = None self.entstatelastchanged = None self.entstateadmin = None self.entstateoper = None self.entstateusage = None self.entstatealarm = Bits() self.entstatestandby = None self._segment_path = lambda: "entStateEntry" + "[entPhysicalIndex='" + str( self.entphysicalindex) + "']" self._absolute_path = lambda: "ENTITY-STATE-MIB:ENTITY-STATE-MIB/entStateTable/%s" % self._segment_path( )
def __init__(self): super(CISCOIPTAPMIB.CitapStreamEncodePacket, self).__init__() self.yang_name = "citapStreamEncodePacket" self.yang_parent_name = "CISCO-IP-TAP-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('citapstreamcapabilities', YLeaf(YType.bits, 'citapStreamCapabilities')), ]) self.citapstreamcapabilities = Bits() self._segment_path = lambda: "citapStreamEncodePacket" self._absolute_path = lambda: "CISCO-IP-TAP-MIB:CISCO-IP-TAP-MIB/%s" % self._segment_path()
def __init__(self): super(CISCOPOWERETHERNETEXTMIB.CpeExtPsePortLldpTable.CpeExtPsePortLldpEntry, self).__init__() self.yang_name = "cpeExtPsePortLldpEntry" self.yang_parent_name = "cpeExtPsePortLldpTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['pethpseportgroupindex','pethpseportindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('pethpseportgroupindex', (YLeaf(YType.str, 'pethPsePortGroupIndex'), ['int'])), ('pethpseportindex', (YLeaf(YType.str, 'pethPsePortIndex'), ['int'])), ('cpeextpseportlldppwrtype', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPwrType'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrType', '')])), ('cpeextpseportlldppdpwrtype', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPdPwrType'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrType', '')])), ('cpeextpseportlldppwrsrc', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPwrSrc'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrSrc', '')])), ('cpeextpseportlldppdpwrsrc', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPdPwrSrc'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrSrc', '')])), ('cpeextpseportlldppwrpriority', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPwrPriority'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtPwrPriority', '')])), ('cpeextpseportlldppdpwrpriority', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPdPwrPriority'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtPwrPriority', '')])), ('cpeextpseportlldppwrreq', (YLeaf(YType.uint32, 'cpeExtPsePortLldpPwrReq'), ['int'])), ('cpeextpseportlldppdpwrreq', (YLeaf(YType.uint32, 'cpeExtPsePortLldpPdPwrReq'), ['int'])), ('cpeextpseportlldppwralloc', (YLeaf(YType.uint32, 'cpeExtPsePortLldpPwrAlloc'), ['int'])), ('cpeextpseportlldppdpwralloc', (YLeaf(YType.uint32, 'cpeExtPsePortLldpPdPwrAlloc'), ['int'])), ('cpeextpseportlldppwrclass', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPwrClass'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrClassOrZero', '')])), ('cpeextpseportlldppdpwrclass', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPdPwrClass'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CpeExtLldpPwrClassOrZero', '')])), ('cpeextpseportlldppdpwrsupport', (YLeaf(YType.bits, 'cpeExtPsePortLldpPdPwrSupport'), ['Bits'])), ('cpeextpseportlldppdpwrpairsorzero', (YLeaf(YType.enumeration, 'cpeExtPsePortLldpPdPwrPairsOrZero'), [('ydk.models.cisco_ios_xe.CISCO_POWER_ETHERNET_EXT_MIB', 'CISCOPOWERETHERNETEXTMIB', 'CpeExtPsePortLldpTable.CpeExtPsePortLldpEntry.CpeExtPsePortLldpPdPwrPairsOrZero')])), ]) self.pethpseportgroupindex = None self.pethpseportindex = None self.cpeextpseportlldppwrtype = None self.cpeextpseportlldppdpwrtype = None self.cpeextpseportlldppwrsrc = None self.cpeextpseportlldppdpwrsrc = None self.cpeextpseportlldppwrpriority = None self.cpeextpseportlldppdpwrpriority = None self.cpeextpseportlldppwrreq = None self.cpeextpseportlldppdpwrreq = None self.cpeextpseportlldppwralloc = None self.cpeextpseportlldppdpwralloc = None self.cpeextpseportlldppwrclass = None self.cpeextpseportlldppdpwrclass = None self.cpeextpseportlldppdpwrsupport = Bits() self.cpeextpseportlldppdpwrpairsorzero = None self._segment_path = lambda: "cpeExtPsePortLldpEntry" + "[pethPsePortGroupIndex='" + str(self.pethpseportgroupindex) + "']" + "[pethPsePortIndex='" + str(self.pethpseportindex) + "']" self._absolute_path = lambda: "CISCO-POWER-ETHERNET-EXT-MIB:CISCO-POWER-ETHERNET-EXT-MIB/cpeExtPsePortLldpTable/%s" % self._segment_path() self._is_frozen = True
def __init__(self): super(CISCOENVMONMIB.CiscoEnvMonObjects, self).__init__() self.yang_name = "ciscoEnvMonObjects" self.yang_parent_name = "CISCO-ENVMON-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('ciscoenvmonpresent', YLeaf(YType.enumeration, 'ciscoEnvMonPresent')), ('ciscoenvmonalarmcontacts', YLeaf(YType.bits, 'ciscoEnvMonAlarmContacts')), ]) self.ciscoenvmonpresent = None self.ciscoenvmonalarmcontacts = Bits() self._segment_path = lambda: "ciscoEnvMonObjects" self._absolute_path = lambda: "CISCO-ENVMON-MIB:CISCO-ENVMON-MIB/%s" % self._segment_path()
def __init__(self): super(ETHERWIS.EtherWisFarEndPathCurrentTable.EtherWisFarEndPathCurrentEntry, self).__init__() self.yang_name = "etherWisFarEndPathCurrentEntry" self.yang_parent_name = "etherWisFarEndPathCurrentTable" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = ['ifindex'] self._child_classes = OrderedDict([]) self._leafs = OrderedDict([ ('ifindex', (YLeaf(YType.str, 'ifIndex'), ['int'])), ('etherwisfarendpathcurrentstatus', (YLeaf(YType.bits, 'etherWisFarEndPathCurrentStatus'), ['Bits'])), ]) self.ifindex = None self.etherwisfarendpathcurrentstatus = Bits() self._segment_path = lambda: "etherWisFarEndPathCurrentEntry" + "[ifIndex='" + str(self.ifindex) + "']" self._absolute_path = lambda: "ETHER-WIS:ETHER-WIS/etherWisFarEndPathCurrentTable/%s" % self._segment_path() self._is_frozen = True
def __init__(self): super(PBRIDGEMIB.Dot1Dextbase, self).__init__() self.yang_name = "dot1dExtBase" self.yang_parent_name = "P-BRIDGE-MIB" self.is_top_level_class = False self.has_list_ancestor = False self.ylist_key_names = [] self._child_container_classes = OrderedDict([]) self._child_list_classes = OrderedDict([]) self._leafs = OrderedDict([ ('dot1ddevicecapabilities', YLeaf(YType.bits, 'dot1dDeviceCapabilities')), ('dot1dtrafficclassesenabled', YLeaf(YType.boolean, 'dot1dTrafficClassesEnabled')), ('dot1dgmrpstatus', YLeaf(YType.enumeration, 'dot1dGmrpStatus')), ]) self.dot1ddevicecapabilities = Bits() self.dot1dtrafficclassesenabled = None self.dot1dgmrpstatus = None self._segment_path = lambda: "dot1dExtBase" self._absolute_path = lambda: "P-BRIDGE-MIB:P-BRIDGE-MIB/%s" % self._segment_path()