File tree 2 files changed +4
-3
lines changed
src/sonic_ax_impl/mibs/ietf
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ def reinit_data(self):
32
32
## Collect only ipv4 lo interfaces
33
33
for loopback in loopbacks :
34
34
lostr = loopback .decode ()
35
- loip = lostr [len ("INTF_TABLE:lo:" ):]
35
+ loipmask = lostr [len ("INTF_TABLE:lo:" ):]
36
+ loip = loipmask .split ('/' )[0 ]
36
37
ipa = ipaddress .ip_address (loip )
37
38
if isinstance (ipa , ipaddress .IPv4Address ):
38
39
self .loips [loip ] = ipa
Original file line number Diff line number Diff line change 675
675
"oper_status" : " up" ,
676
676
"mtu" : " 9216"
677
677
},
678
- "INTF_TABLE:lo:10.1.0.32" : {
678
+ "INTF_TABLE:lo:10.1.0.32/32 " : {
679
679
"scope" : " global" ,
680
680
"family" : " IPv4"
681
681
},
682
- "INTF_TABLE:lo:fc00:1::32" : {
682
+ "INTF_TABLE:lo:fc00:1::32/128 " : {
683
683
"scope" : " global" ,
684
684
"family" : " IPv6"
685
685
}
You can’t perform that action at this time.
0 commit comments