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.Logger
LOG
-
Constructor Summary
Constructors Constructor Description MappingServiceShell(IMappingService mappingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefaultKeyIPv4()
Add the default key "password" for the IPv4 prefix 0.0.0.0/0.void
addDefaultKeyIPv6()
Add the default key "password" for the IPv6 prefix ::0/0.java.lang.String
prettyPrintKeys()
Print the full authentication key database in human readable form.java.lang.String
prettyPrintMappings()
Print the full mapping database in human readable form.java.lang.String
printKeys()
Print the full authentication key database.java.lang.String
printMappings()
Print the full mapping database.
-
-
-
Constructor Detail
-
MappingServiceShell
public MappingServiceShell(IMappingService mappingService)
-
-
Method Detail
-
printMappings
public java.lang.String printMappings()
Description copied from interface:IMappingServiceShell
Print the full mapping database.- Specified by:
printMappings
in interfaceIMappingServiceShell
- Returns:
- the text to be printed on the Karaf console.
-
prettyPrintMappings
public java.lang.String prettyPrintMappings()
Description copied from interface:IMappingServiceShell
Print the full mapping database in human readable form.- Specified by:
prettyPrintMappings
in interfaceIMappingServiceShell
- Returns:
- the text to be printed on the Karaf console.
-
printKeys
public java.lang.String printKeys()
Description copied from interface:IMappingServiceShell
Print the full authentication key database.- Specified by:
printKeys
in interfaceIMappingServiceShell
- Returns:
- the text to be printed on the Karaf console.
-
prettyPrintKeys
public java.lang.String prettyPrintKeys()
Description copied from interface:IMappingServiceShell
Print the full authentication key database in human readable form.- Specified by:
prettyPrintKeys
in interfaceIMappingServiceShell
- Returns:
- the text to be printed on the Karaf console.
-
addDefaultKeyIPv4
public void addDefaultKeyIPv4()
Description copied from interface:IMappingServiceShell
Add the default key "password" for the IPv4 prefix 0.0.0.0/0.- Specified by:
addDefaultKeyIPv4
in interfaceIMappingServiceShell
-
addDefaultKeyIPv6
public void addDefaultKeyIPv6()
Description copied from interface:IMappingServiceShell
Add the default key "password" for the IPv6 prefix ::0/0.- Specified by:
addDefaultKeyIPv6
in interfaceIMappingServiceShell
-
-