Class MappingServiceShell
- java.lang.Object
-
- org.opendaylight.lispflowmapping.implementation.MappingServiceShell
-
- All Implemented Interfaces:
IMappingServiceShell
public class MappingServiceShell extends java.lang.Object implements IMappingServiceShell
Implement Karaf commands to interact with the Mapping Service.- Author:
- Lorand Jakab
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description MappingServiceShell(IMappingService mappingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDefaultKeyIPv4()Add the default key "password" for the IPv4 prefix 0.0.0.0/0.voidaddDefaultKeyIPv6()Add the default key "password" for the IPv6 prefix ::0/0.java.lang.StringprettyPrintKeys()Print the full authentication key database in human readable form.java.lang.StringprettyPrintMappings()Print the full mapping database in human readable form.java.lang.StringprintKeys()Print the full authentication key database.java.lang.StringprintMappings()Print the full mapping database.
-
-
-
Constructor Detail
-
MappingServiceShell
public MappingServiceShell(IMappingService mappingService)
-
-
Method Detail
-
printMappings
public java.lang.String printMappings()
Description copied from interface:IMappingServiceShellPrint the full mapping database.- Specified by:
printMappingsin interfaceIMappingServiceShell- Returns:
- the text to be printed on the Karaf console.
-
prettyPrintMappings
public java.lang.String prettyPrintMappings()
Description copied from interface:IMappingServiceShellPrint the full mapping database in human readable form.- Specified by:
prettyPrintMappingsin interfaceIMappingServiceShell- Returns:
- the text to be printed on the Karaf console.
-
printKeys
public java.lang.String printKeys()
Description copied from interface:IMappingServiceShellPrint the full authentication key database.- Specified by:
printKeysin interfaceIMappingServiceShell- Returns:
- the text to be printed on the Karaf console.
-
prettyPrintKeys
public java.lang.String prettyPrintKeys()
Description copied from interface:IMappingServiceShellPrint the full authentication key database in human readable form.- Specified by:
prettyPrintKeysin interfaceIMappingServiceShell- Returns:
- the text to be printed on the Karaf console.
-
addDefaultKeyIPv4
public void addDefaultKeyIPv4()
Description copied from interface:IMappingServiceShellAdd the default key "password" for the IPv4 prefix 0.0.0.0/0.- Specified by:
addDefaultKeyIPv4in interfaceIMappingServiceShell
-
addDefaultKeyIPv6
public void addDefaultKeyIPv6()
Description copied from interface:IMappingServiceShellAdd the default key "password" for the IPv6 prefix ::0/0.- Specified by:
addDefaultKeyIPv6in interfaceIMappingServiceShell
-
-