MCPcopy Create free account
hub / github.com/apache/cloudstack / add_network_route_v6

Method add_network_route_v6

systemvm/debian/opt/cloud/bin/cs/CsRoute.py:188–193  ·  view source on GitHub ↗

Wrapper method that adds table name and device to route statement

(self, dev, address)

Source from the content-addressed store, hash-verified

186 return True
187
188 def add_network_route_v6(self, dev, address):
189 """ Wrapper method that adds table name and device to route statement """
190 # ip -6 route add dev eth1 2021:10:10:10::1/64
191 logging.info("Adding IPv6 route: dev " + dev + " network: " + address + " if not present")
192 cmd = "%s dev %s proto kernel" % (address, dev)
193 self.set_route_v6(cmd)
194
195 def delete_network_route_v6(self, dev, address):
196 """ Wrapper method that deletes table name and device from route statement """

Callers

nothing calls this directly

Calls 2

set_route_v6Method · 0.95
infoMethod · 0.45

Tested by

no test coverage detected