Commit c45e6d69 authored by David Hancock's avatar David Hancock

Organize class structure, add license

parent effd8e9f
MIT License
Copyright (c) 2017 David L. Hancock
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
class Composition():
pass
class Chain(Composition):
pass
class DAG(Composition):
pass
class VirtualNetwork(Composition):
pass
import p4command
class Device():
pass
class Bmv2_SSwitch(Device):
pass
class Agilio(Device):
pass
class Client():
pass
class SliceManager(Client):
pass
class ChainSliceManager(SliceManager):
pass
class Administrator(Client):
pass
class HP4Compiler():
pass
class P4_to_HP4(HP4Compiler):
pass
class CodeRepresentation():
pass
#!/usr/bin/python
import virtualdevice
class Controller():
pass
class ChainController(Controller):
pass
class Slice():
pass
class Lease():
pass
print("Success!")
import virtualdevice
import p4command
class VDevCommand_to_HP4Command():
pass
import p4rule
class P4Command():
def __init__(self, command_type, rule):
self.command_type = command_type
self.rule = rule
class P4Rule():
pass
from p4command import P4Command
class VirtualDevice():
def __init__(self, virtual_device_ID):
self.virtual_device_ID = virtual_device_ID
self.code = []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment