Skip to content

Commit

Permalink
Updated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tapashdas committed Nov 11, 2020
1 parent 73f90d2 commit e31a0e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,16 @@ def interface_ipaddr_dependent_on_interface(config_db, interface_name):
data.append(key)
return data

def get_intf_vrf_bind_unique_ip(db, interface_name, interface_type):
intfvrf = db.get_table(interface_type)
if interface_name in intfvrf:
if 'vrf_name' in intfvrf[interface_name]:
return intfvrf[interface_name]['vrf_name']
else:
return ""
else:
return ""

def is_interface_bind_to_vrf(config_db, interface_name):
"""Get interface if bind to vrf or not
"""
Expand Down

0 comments on commit e31a0e4

Please sign in to comment.