Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. INTERFACE_SHUTDOWN = Literal("shutdown").setParseAction(self.on_interface_shutdown)
  2.  
  3. def on_interface_shutdown(self, tokens):
  4. status = tokens[0]
  5. si = self.get_current_subinterface()
  6. si.admin_status = status
  7. if "." not in si.name:
  8. si.interface.admin_status = status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement