Ejemplo n.º 1
0
 def __init__(self, uvn, name="create", alias=["c"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Initialize a new UVN",
         help_long="""Initialize a new UVN root directory.""")
Ejemplo n.º 2
0
 def __init__(self, uvn, name="agent", alias=["A"]):
     UvnCommand.__init__(self,
                         uvn,
                         name=name,
                         alias=alias,
                         help_short="Start the UVN agent",
                         help_long="""Start the UVN agent.""",
                         daemon_friendly=True)
Ejemplo n.º 3
0
 def __init__(self, uvn, name="runner", alias=["R"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Provision a uvn node with a Docker container",
         help_long="""Provision a uvn node with a Docker container.""",
         subcommands=[UvnSubcommandRunnerBuild])
Ejemplo n.º 4
0
 def __init__(self, uvn, name="attach", alias=["a"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Attach a cell or particle to the UVN",
         help_long="""Attach a cell or particle to the UVN.""",
         subcommands=[UvnSubcommandAttachCell, UvnSubcommandAttachParticle])
Ejemplo n.º 5
0
 def __init__(self, uvn, name="deploy", alias=["d"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Generate deployment configuration for a UVN",
         help_long="""Generate deployment configuration which to be
                   distributed to the cells of a UVN.""")
Ejemplo n.º 6
0
 def __init__(self, uvn, name="nameserver", alias=["ns"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Manage UVN name server",
         help_long="""Manage UVN name server.""",
         subcommands=[
             UvnSubcommandNameserverAssert,
             UvnSubcommandNameserverRemove])
Ejemplo n.º 7
0
 def __init__(self, uvn, name="drop", alias=["D"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Drop elements from the UVN",
         help_long=
         """Delete existing deployments, cells, or particles from the UVN."""
     )
Ejemplo n.º 8
0
 def __init__(self, uvn, name="view", alias=["v"]):
     UvnCommand.__init__(
         self,
         uvn,
         name=name,
         alias=alias,
         help_short="Display UVN Agent configuration files and logs.",
         help_long="""Display UVN Agent configuration files and logs..""",
         subcommands=[
             UvnSubcommandViewRoutingService, UvnSubcommandViewKernel,
             UvnSubcommandViewZebra, UvnSubcommandViewOspfd,
             UvnSubcommandViewNameserver, UvnSubcommandViewAgent
         ])
Ejemplo n.º 9
0
 def __init__(self, uvn, name="info", alias=["i"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Display information about a UVN",
         help_long="""Display information about a UVN.""")
Ejemplo n.º 10
0
 def __init__(self, uvn, name="graph", alias=["G"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Generate a graph of the UVN layout",
         help_long="""Generate a graph of the UVN layout.""")
Ejemplo n.º 11
0
 def __init__(self, uvn, name="install", alias=["I"]):
     UvnCommand.__init__(self, uvn,
         name=name,
         alias=alias,
         help_short="Install a UVN cell package",
         help_long="""Install a UVN cell package.""")