MCPcopy Create free account

hub / github.com/USC-NSL/miniNExT / functions

Functions92 in github.com/USC-NSL/miniNExT

↓ 7 callersMethodgetNodeParam
Returns a specific parameter from node's parameters for this service
mininext/util.py:338
↓ 6 callersMethodsetParam
Internal method: configure a *single* parameter results: dict of results to update method: config method name param:
mininext/node.py:164
↓ 4 callersFunctionattachToNS
Attach to the specified namespace FD path */
mxexec.c:102
↓ 4 callersMethodsetupMountPoint
Handle mountPoint source and target as PathProperties or strings Assume source/target strings first, then handle PathProperties
mininext/node.py:376
↓ 3 callersMethodbindObject
Bind (mount -B) source to target, update records of existing binds source: path being attached (/home/user/privatedir) target: a
mininext/node.py:415
↓ 3 callersFunctiondoObjectPermsEqual
Compare object's (file / dir) permissions to specified values (with IDs)
mininext/util.py:175
↓ 3 callersMethoderrIfNodeNotSubscribed
Raises an exception if node is not subscribed
mininext/service.py:29
↓ 3 callersMethodgetNodeParams
Returns structure containing a node's parameters for this service
mininext/util.py:349
↓ 3 callersFunctionsetObjectPerms
Set an object's permissions to the specified values
mininext/util.py:225
↓ 3 callersFunctionsetUIDGID
Set perms.uid and .gid only if perms.username / .groupname set
mininext/util.py:131
↓ 3 callersMethodsetupPath
Sets up a path / directory based on a PathProperties object
mininext/node.py:397
↓ 3 callersFunctionusage
mxexec.c:40
↓ 2 callersMethodaddNodeLoopbackIntf
Adds a loopback interface (called on instantiation an interface). loIntf: loopback interface.
mininext/node.py:266
↓ 2 callersFunctioncheckPath
Raises exception if path is not valid
mininext/util.py:56
↓ 2 callersFunctiongetObjectPerms
Returns an object's (file / dir) permissions
mininext/util.py:197
↓ 2 callersMethodnodeIsSubscribed
Checks if a node is subscribed by looking for its parameter entry Even if a node had no params to pass, there will still be an e
mininext/service.py:23
↓ 2 callersFunctionquietCheckIsDir
Return if path is a valid directory
mininext/util.py:51
↓ 2 callersMethodstart
Start the service for a specific node
mininext/service.py:91
↓ 2 callersMethodupdateGlobalParams
Update the parameters shared by all nodes (the global parameters)
mininext/util.py:297
↓ 1 callersMethodaddHost
Adds a host using the MiniNExT host constructor. name: host name cls: host constructor opts: host options
mininext/topo.py:20
↓ 1 callersMethodaddNodeService
Adds a loopback interface to a specified host. node: host node service: service object nodeConfig: a specific node's
mininext/topo.py:53
↓ 1 callersMethodautoStart
Auto-start nodes that have requested it
mininext/service.py:79
↓ 1 callersMethodautoStartServices
Starts services w/ autoStart=True that are configured for this node
mininext/node.py:297
↓ 1 callersMethodautoStop
Auto-stop nodes that have requested it
mininext/service.py:85
↓ 1 callersMethodautoStopServices
Stops services w/ autoStop=True that are configured for this node
mininext/node.py:309
↓ 1 callersFunctioncgroup
Add our pid to cgroup */
mxexec.c:78
↓ 1 callersMethodconfig
Configure Node according to (optional) parameters: mac: MAC address for default interface ip: IP address for default interface
mininext/node.py:196
↓ 1 callersFunctioncreateDirIfNeeded
Create a dir with specified permissions if it does not already exist
mininext/util.py:67
↓ 1 callersFunctiondoDirPermsEqual
Ask below if the perms are equal, raise exception if they are not...
mininext/util.py:138
↓ 1 callersMethodgetDefaultGlobalMounts
Returns service-wide default mounts and mount config pairs
mininext/service.py:131
↓ 1 callersMethodgetDefaultGlobalMounts
Service-wide default mounts for the Quagga service
mininext/services/quagga.py:73
↓ 1 callersMethodgetDefaultGlobalParams
This is filled in by derived class with default parameters
mininext/util.py:293
↓ 1 callersMethodgetMountsForNode
Returns a structure with the node's service mounts
mininext/service.py:138
↓ 1 callersFunctiongetUIDGID
Get the UID and GID corresponding with a username and/or groupname
mininext/util.py:114
↓ 1 callersMethodhasNodeParam
Checks whether we have a parameter for a specific node
mininext/util.py:330
↓ 1 callersMethodhasNodeParams
Checks whether we have received parameters for a specific node
mininext/util.py:334
↓ 1 callersMethodnextLoopbackIntf
Returns the index of the next loopback interface that is free
mininext/node.py:274
↓ 1 callersFunctionquietCheckPath
Return if path is valid
mininext/util.py:62
↓ 1 callersFunctionquietDoDirPermsEqual
Check if a dir's permissions are equal to the specified values
mininext/util.py:148
↓ 1 callersFunctionserviceCheck
Make sure each service in *args can be found in /etc/init.d/.
mininext/moduledeps.py:9
↓ 1 callersFunctionsetDirPerms
Set a path's permissions to the specified values
mininext/util.py:210
↓ 1 callersFunctionsetns
mxexec.c:62
↓ 1 callersMethodsetupNode
Setup a node to support the service and record node subscription
mininext/service.py:37
↓ 1 callersMethodsetupNodeForService
Subclasses can use this to perform detailed setup (as needed)
mininext/service.py:64
↓ 1 callersMethodsetupNodeMounts
Get the service mounts for a specific node
mininext/service.py:68
↓ 1 callersFunctionstartNetwork
instantiates a topo, then starts the network and prints debug information
examples/quagga-ixp/start.py:29
↓ 1 callersMethodstop
Stop the controller(s), switches and hosts
mininext/net.py:38
↓ 1 callersMethodstop
Stop the service for a specific node
mininext/service.py:110
↓ 1 callersMethodstoreNodeParams
Stores or updates node specific service parameters If requested, merge the default config with the node's config, with the node'
mininext/util.py:317
↓ 1 callersFunctionvalidate
Validate alphanumeric path foo1/bar2/baz */
mxexec.c:67
↓ 1 callersMethodverifyNodeMeetsServiceRequirements
Subclasses can to verify that a node meets it's requirements by inspecting the node's attributes (inPIDNamespace, etc.), paramet
mininext/service.py:58
Method__hash__
Hashes any object of a service to the same value Thus, an attempt to use two instances of the same service in a single node will
mininext/service.py:186
Method__init__
name: name of node inNamespace: in network namespace? inMountNamespace: has private mountspace? inPIDNamespace: has p
mininext/node.py:24
Method__init__
node: owning node (where this loopback intf is being created) loNum: the loopback number (lo:X) other arguments are passed to In
mininext/link.py:12
Method__init__
Extended Topo object: nopts: default NAT options
mininext/topo.py:13
Method__init__
(self, *args, **kwargs)
mininext/net.py:14
Method__init__
initializes a mount properties object target: either a PathProperties object or a path string source: either a PathProperties ob
mininext/mount.py:10
Method__init__
initializes a path properties object
mininext/mount.py:22
Method__init__
initializes an object permissions object
mininext/mount.py:43
Method__init__
name: name of parameter container params: parameters to be used for global params
mininext/util.py:278
Method__init__
Initializes a new service helper object name: service name (e.g. OpenVPN, Quagga, etc.) kwargs: arguments that override service
mininext/service.py:14
Method__init__
Initializes a QuaggaService instance with a set of global parameters Args: name (str): Service name (derived class may wish to ov
mininext/services/quagga.py:14
Method__init__
Initialize a Quagga topology with 5 routers, configure their IP addresses, loop back interfaces, and paths to their private conf
examples/quagga-ixp/topo.py:20
Method__repr__
(self)
mininext/service.py:180
Method__str__
(self)
mininext/service.py:183
MethodaddNodeLoopbackIntf
Adds a loopback interface to a specified host. node: host node ip: the IP address that will be assigned to the lo interface
mininext/topo.py:31
FunctioncheckIsDir
Raises exception if path is not valid directory
mininext/util.py:45
MethodconfigHosts
Configure the networks hosts.
mininext/net.py:18
FunctioncopyTreeToExistingDir
Copy the contents of one directory into another (existing) directory
mininext/util.py:257
Methoddelete
(self)
mininext/link.py:36
FunctiondeleteDirIfExists
Delete a directory if it exists (no error if it does not exist)
mininext/util.py:108
MethodgetDefaultGlobalParams
An individual service fills this in with it's default parameters
mininext/service.py:125
MethodgetDefaultGlobalParams
Returns the default parameters for this service
mininext/services/quagga.py:64
MethodgetGlobalParam
Get a service wide default parameter
mininext/util.py:301
MethodgetGlobalParams
Get service wide default parameters
mininext/util.py:311
MethodhasPrivateMount
Returns if the node has a private mount for a specific target
mininext/node.py:436
FunctionisShellBuiltin
Override to replace MiniNExT's existing isShellBuiltin() function, which is partially broken. Function should return true if cmd issued
mininext/util.py:17
Functionmain
mxexec.c:116
Methodpopen
Return Popen() object in proper PID, UTS, mount, network namespaces args: Popen() args, single list, or string kwargs: Popen() k
mininext/node.py:108
Methodrename
(self, newname)
mininext/link.py:33
MethodsendInt
Interrupt running command.
mininext/node.py:152
MethodsetupHostname
Handles the setup of a hostname for the node
mininext/node.py:226
MethodsetupLoopbacks
Handles the setup of a list of loopback configs
mininext/node.py:260
MethodsetupMountPoints
Handles PathProperties objects then binds
mininext/node.py:392
MethodsetupNodeForService
After mounts and other operations taken care of by Service Helper, we perform a few last minute tasks here
mininext/services/quagga.py:56
MethodsetupPaths
Sets up a paths / directories based on PathProperties objects
mininext/node.py:410
MethodsetupPrivateLogs
Sets up a private /var/log directory for the node privateLogDir: None/True for default source, else path for source
mininext/node.py:324
MethodsetupPrivateRun
Sets up a private /run (& /var/run) directory for the node privateRunDir: None/True for default source, else path for source
mininext/node.py:350
MethodsetupServices
Sets up services in the passed list for this node
mininext/node.py:281
MethodstartShell
Overrides the default shell start process to handle the addition of PID, UTS, and mount namespaces.
mininext/node.py:58
FunctionstopNetwork
stops a network (only called on a forced cleanup)
examples/quagga-ixp/start.py:54
MethodverifyNodeMeetsServiceRequirements
Verifies that a specified node is configured to support Quagga Overrides the :class:`.Service` default verification method to conduct
mininext/services/quagga.py:31