def _register_attributes(cls):
action = Attribute("action", "Either add or del",
allowed = ["add", "del"],
- flags = Flags.ExecReadOnly)
+ flags = Flags.Design)
network = Attribute("network", "IPv4 Network Address",
- flags = Flags.ExecReadOnly)
+ flags = Flags.Design)
cls._register_attribute(action)
cls._register_attribute(network)
command = ["sudo -S python ${SRC}/pl-vroute.py"]
command.append("-a %s" % self.get("action"))
command.append("-n %s" % self.get("network"))
- command.append("-p %d" % self.tap.get("prefix4"))
+ command.append("-p %d" % self.tap.get("endpoint_prefix"))
command.append("-g %s" % self.tap.get("pointopoint"))
command.append("-f %s" % self.tap.get("deviceName"))
return " ".join(command)
command = ["sudo -S python ${SRC}/pl-vroute.py"]
command.append("-a %s" % "del")
command.append("-n %s" % self.get("network"))
- command.append("-p %d" % self.tap.get("prefix4"))
+ command.append("-p %d" % self.tap.get("endpoint_prefix"))
command.append("-g %s" % self.tap.get("pointopoint"))
command.append("-f %s" % self.tap.get("deviceName"))
return " ".join(command)