cleaned up SDN services for release
This commit is contained in:
parent
a1007e2391
commit
192b362ae6
3 changed files with 54 additions and 87 deletions
|
@ -8,8 +8,10 @@
|
|||
|
||||
import os
|
||||
|
||||
from core.service import CoreService, addservice
|
||||
from core.misc.ipaddr import IPv4Prefix, IPv6Prefix
|
||||
from core.misc.ipaddress import Ipv4Prefix
|
||||
from core.misc.ipaddress import Ipv6Prefix
|
||||
from core.service import CoreService
|
||||
from core.service import ServiceManager
|
||||
|
||||
class MyService(CoreService):
|
||||
''' This is a sample user-defined service.
|
||||
|
@ -60,5 +62,5 @@ class MyService(CoreService):
|
|||
return 'echo " network %s"' % (net)
|
||||
|
||||
# this line is required to add the above class to the list of available services
|
||||
addservice(MyService)
|
||||
ServiceManager.add(MyService)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue