Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPports API returns wrong address #48

Open
PeiwenChen opened this issue Mar 29, 2016 · 0 comments
Open

IPports API returns wrong address #48

PeiwenChen opened this issue Mar 29, 2016 · 0 comments

Comments

@PeiwenChen
Copy link

@ganeshnalawade
The IPports API returns wrong address. Please fix it.

Junos::Ez::IPports::Provider(ndev, :ip_ports)
ip_interfaces = ndev.ip_ports.catalog
puts ip_interfaces

It prints this

xxx
"vlan.97"=>{:_active=>true, :_exist=>true, :admin=>:up, :address=>"172.11.0.1/16172.11.0.16/16"}}

The address is wrong, it should be seperated with comma:
172.11.0.1/16, 172.11.0.16/16

This is what I saw on the router. There are two <ifa-local> addresses.

<physical-interface>
            <name>vlan</name>
            <admin-status>up</admin-status>
            <oper-status>up</oper-status>
            <logical-interface>
                <name>vlan.97</name>
                <admin-status>up</admin-status>
                <oper-status>up</oper-status>
                <filter-information>
                </filter-information>
                <address-family>
                    <address-family-name>inet</address-family-name>
                    <interface-address>
                        <ifa-local junos:emit="emit">172.11.0.1/16</ifa-local>
                    </interface-address>
                    <interface-address>
                        <ifa-local junos:emit="emit">172.11.0.16/16</ifa-local>
                    </interface-address>
                </address-family>       
            </logical-interface>
        </physical-interface>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant