Exclude the vrrp maintained addresses on a redundant router
(self, bag, ip)
| 971 | return interface.get_gateway() |
| 972 | |
| 973 | def is_guest_gateway(self, bag, ip): |
| 974 | """ Exclude the vrrp maintained addresses on a redundant router """ |
| 975 | interface = CsInterface(bag, self.config) |
| 976 | if not self.config.cl.is_redundant(): |
| 977 | return False |
| 978 | |
| 979 | rip = ip.split('/')[0] |
| 980 | logging.info("Checking if cidr is a gateway for rVPC. IP ==> %s / device ==> %s", ip, self.dev) |
| 981 | |
| 982 | gw = interface.get_gateway() |
| 983 | logging.info("Interface has the following gateway ==> %s", gw) |
| 984 | |
| 985 | if bag['nw_type'] == "guest" and rip == gw: |
| 986 | return True |
| 987 | return False |
| 988 | |
| 989 | def delete(self, ip): |
| 990 | remove = [] |
no test coverage detected