Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/USC-NSL/miniNExT
/ functions
Functions
92 in github.com/USC-NSL/miniNExT
⨍
Functions
92
◇
Types & classes
14
↓ 7 callers
Method
getNodeParam
Returns a specific parameter from node's parameters for this service
mininext/util.py:338
↓ 6 callers
Method
setParam
Internal method: configure a *single* parameter results: dict of results to update method: config method name param:
mininext/node.py:164
↓ 4 callers
Function
attachToNS
Attach to the specified namespace FD path */
mxexec.c:102
↓ 4 callers
Method
setupMountPoint
Handle mountPoint source and target as PathProperties or strings Assume source/target strings first, then handle PathProperties
mininext/node.py:376
↓ 3 callers
Method
bindObject
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 callers
Function
doObjectPermsEqual
Compare object's (file / dir) permissions to specified values (with IDs)
mininext/util.py:175
↓ 3 callers
Method
errIfNodeNotSubscribed
Raises an exception if node is not subscribed
mininext/service.py:29
↓ 3 callers
Method
getNodeParams
Returns structure containing a node's parameters for this service
mininext/util.py:349
↓ 3 callers
Function
setObjectPerms
Set an object's permissions to the specified values
mininext/util.py:225
↓ 3 callers
Function
setUIDGID
Set perms.uid and .gid only if perms.username / .groupname set
mininext/util.py:131
↓ 3 callers
Method
setupPath
Sets up a path / directory based on a PathProperties object
mininext/node.py:397
↓ 3 callers
Function
usage
mxexec.c:40
↓ 2 callers
Method
addNodeLoopbackIntf
Adds a loopback interface (called on instantiation an interface). loIntf: loopback interface.
mininext/node.py:266
↓ 2 callers
Function
checkPath
Raises exception if path is not valid
mininext/util.py:56
↓ 2 callers
Function
getObjectPerms
Returns an object's (file / dir) permissions
mininext/util.py:197
↓ 2 callers
Method
nodeIsSubscribed
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 callers
Function
quietCheckIsDir
Return if path is a valid directory
mininext/util.py:51
↓ 2 callers
Method
start
Start the service for a specific node
mininext/service.py:91
↓ 2 callers
Method
updateGlobalParams
Update the parameters shared by all nodes (the global parameters)
mininext/util.py:297
↓ 1 callers
Method
addHost
Adds a host using the MiniNExT host constructor. name: host name cls: host constructor opts: host options
mininext/topo.py:20
↓ 1 callers
Method
addNodeService
Adds a loopback interface to a specified host. node: host node service: service object nodeConfig: a specific node's
mininext/topo.py:53
↓ 1 callers
Method
autoStart
Auto-start nodes that have requested it
mininext/service.py:79
↓ 1 callers
Method
autoStartServices
Starts services w/ autoStart=True that are configured for this node
mininext/node.py:297
↓ 1 callers
Method
autoStop
Auto-stop nodes that have requested it
mininext/service.py:85
↓ 1 callers
Method
autoStopServices
Stops services w/ autoStop=True that are configured for this node
mininext/node.py:309
↓ 1 callers
Function
cgroup
Add our pid to cgroup */
mxexec.c:78
↓ 1 callers
Method
config
Configure Node according to (optional) parameters: mac: MAC address for default interface ip: IP address for default interface
mininext/node.py:196
↓ 1 callers
Function
createDirIfNeeded
Create a dir with specified permissions if it does not already exist
mininext/util.py:67
↓ 1 callers
Function
doDirPermsEqual
Ask below if the perms are equal, raise exception if they are not...
mininext/util.py:138
↓ 1 callers
Method
getDefaultGlobalMounts
Returns service-wide default mounts and mount config pairs
mininext/service.py:131
↓ 1 callers
Method
getDefaultGlobalMounts
Service-wide default mounts for the Quagga service
mininext/services/quagga.py:73
↓ 1 callers
Method
getDefaultGlobalParams
This is filled in by derived class with default parameters
mininext/util.py:293
↓ 1 callers
Method
getMountsForNode
Returns a structure with the node's service mounts
mininext/service.py:138
↓ 1 callers
Function
getUIDGID
Get the UID and GID corresponding with a username and/or groupname
mininext/util.py:114
↓ 1 callers
Method
hasNodeParam
Checks whether we have a parameter for a specific node
mininext/util.py:330
↓ 1 callers
Method
hasNodeParams
Checks whether we have received parameters for a specific node
mininext/util.py:334
↓ 1 callers
Method
nextLoopbackIntf
Returns the index of the next loopback interface that is free
mininext/node.py:274
↓ 1 callers
Function
quietCheckPath
Return if path is valid
mininext/util.py:62
↓ 1 callers
Function
quietDoDirPermsEqual
Check if a dir's permissions are equal to the specified values
mininext/util.py:148
↓ 1 callers
Function
serviceCheck
Make sure each service in *args can be found in /etc/init.d/.
mininext/moduledeps.py:9
↓ 1 callers
Function
setDirPerms
Set a path's permissions to the specified values
mininext/util.py:210
↓ 1 callers
Function
setns
mxexec.c:62
↓ 1 callers
Method
setupNode
Setup a node to support the service and record node subscription
mininext/service.py:37
↓ 1 callers
Method
setupNodeForService
Subclasses can use this to perform detailed setup (as needed)
mininext/service.py:64
↓ 1 callers
Method
setupNodeMounts
Get the service mounts for a specific node
mininext/service.py:68
↓ 1 callers
Function
startNetwork
instantiates a topo, then starts the network and prints debug information
examples/quagga-ixp/start.py:29
↓ 1 callers
Method
stop
Stop the controller(s), switches and hosts
mininext/net.py:38
↓ 1 callers
Method
stop
Stop the service for a specific node
mininext/service.py:110
↓ 1 callers
Method
storeNodeParams
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 callers
Function
validate
Validate alphanumeric path foo1/bar2/baz */
mxexec.c:67
↓ 1 callers
Method
verifyNodeMeetsServiceRequirements
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
Method
addNodeLoopbackIntf
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
Function
checkIsDir
Raises exception if path is not valid directory
mininext/util.py:45
Method
configHosts
Configure the networks hosts.
mininext/net.py:18
Function
copyTreeToExistingDir
Copy the contents of one directory into another (existing) directory
mininext/util.py:257
Method
delete
(self)
mininext/link.py:36
Function
deleteDirIfExists
Delete a directory if it exists (no error if it does not exist)
mininext/util.py:108
Method
getDefaultGlobalParams
An individual service fills this in with it's default parameters
mininext/service.py:125
Method
getDefaultGlobalParams
Returns the default parameters for this service
mininext/services/quagga.py:64
Method
getGlobalParam
Get a service wide default parameter
mininext/util.py:301
Method
getGlobalParams
Get service wide default parameters
mininext/util.py:311
Method
hasPrivateMount
Returns if the node has a private mount for a specific target
mininext/node.py:436
Function
isShellBuiltin
Override to replace MiniNExT's existing isShellBuiltin() function, which is partially broken. Function should return true if cmd issued
mininext/util.py:17
Function
main
mxexec.c:116
Method
popen
Return Popen() object in proper PID, UTS, mount, network namespaces args: Popen() args, single list, or string kwargs: Popen() k
mininext/node.py:108
Method
rename
(self, newname)
mininext/link.py:33
Method
sendInt
Interrupt running command.
mininext/node.py:152
Method
setupHostname
Handles the setup of a hostname for the node
mininext/node.py:226
Method
setupLoopbacks
Handles the setup of a list of loopback configs
mininext/node.py:260
Method
setupMountPoints
Handles PathProperties objects then binds
mininext/node.py:392
Method
setupNodeForService
After mounts and other operations taken care of by Service Helper, we perform a few last minute tasks here
mininext/services/quagga.py:56
Method
setupPaths
Sets up a paths / directories based on PathProperties objects
mininext/node.py:410
Method
setupPrivateLogs
Sets up a private /var/log directory for the node privateLogDir: None/True for default source, else path for source
mininext/node.py:324
Method
setupPrivateRun
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
Method
setupServices
Sets up services in the passed list for this node
mininext/node.py:281
Method
startShell
Overrides the default shell start process to handle the addition of PID, UTS, and mount namespaces.
mininext/node.py:58
Function
stopNetwork
stops a network (only called on a forced cleanup)
examples/quagga-ixp/start.py:54
Method
verifyNodeMeetsServiceRequirements
Verifies that a specified node is configured to support Quagga Overrides the :class:`.Service` default verification method to conduct
mininext/services/quagga.py:31