cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
985
Views
0
Helpful
1
Replies

The interface is invalid (no VLAN IDB)

mrjoli021
Level 1
Level 1

I am new to Yang models.  I am running an old IOS XR router  version 6.2.3.  When I run the yang model template below I keep getting "

The interface is invalid (no VLAN IDB)"

I have read from the link below that I need to add "interface_configuration.interface_mode_non_physical =xr_ifmgr_cfg.InterfaceModeEnumEnum.default " Just not sure where to add this to.  Would this be in the XML if so where, or in some config file.

 

Please help.

 

<config>
    <interface-configurations
        xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg">
        <interface-configuration>
            <active>act</active>
            <interface-name>Bundle-Ether4.{{ carrier_vlan }}{{ cust_vlan_ipsec }}</interface-name>
            <description>{{ customer }}</description>
            <ipv4-network
                xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ipv4-io-cfg">
                <addresses>
                    <primary>
                        <address>{{ hub_wan1_public_ip }}</address>
                        <netmask>255.255.255.254</netmask>
                    </primary>
                </addresses>
            </ipv4-network>
            <vlan-sub-configuration
                xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2-eth-infra-cfg">
                <vlan-identifier>
                    <vlan-type>vlan-type-dot1q</vlan-type>
                    <first-tag>{{ carrier_vlan }}</first-tag>
                    <second-tag>{{ cust_vlan_ipsec }}</second-tag>
                </vlan-identifier>
            </vlan-sub-configuration>
        </interface-configuration>
    </interface-configurations>
</config>

 

 

https://devnetsupport.cisco.com/hc/en-us/articles/115011229828--VLAN-MA-detected-the-warning-condition-The-interface-is-invalid-no-VLAN-IDB-

1 Reply 1

Alexander Stevenson
Cisco Employee
Cisco Employee

 

Hi @mrjoli021,

As far as I can tell, your subinterface configuration is where you will set this. In your case, it's xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-l2-eth-infra-cfg"

 

Now, you currently have an XML document there but I believe from what I've seen, I think a YANG doc would work too.

 

Here is an XR config document using YANG:
https://github.com/YangModels/yang/blob/master/vendor/cisco/xr/534/Cisco-IOS-XR-ifmgr-cfg.yang

 

Notice the leaf:

 

      leaf interface-mode-non-physical {
        xr:xr-xml-map "ifmgr_cfg:InterfaceModeNonPhysical";
        type Interface-mode-enum;
        default "default";
        description "The mode the interface is operating in";
      }

That config might not be exactly what you need but I think that is where you will set it.

 

I might be off, but it seems to match up...