Router.Status| Constructor and Description |
|---|
DefaultRouter(RouterId id,
String routerName,
boolean adminStateUp,
Router.Status status,
boolean distributed,
RouterGateway externalGatewayInfo,
VirtualPortId gatewayPortId,
TenantId tenantId,
List<String> routes)
Creates router object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
adminStateUp()
Returns the router admin state.
|
boolean |
distributed()
Returns the distributed status of this router.
|
boolean |
equals(Object obj) |
RouterGateway |
externalGatewayInfo()
Returns the RouterGateway of router.
|
VirtualPortId |
gatewayPortid()
Returns the gatewayPortid of router.
|
int |
hashCode() |
RouterId |
id()
Returns the router identifier.
|
String |
name()
Returns the router Name.
|
List<String> |
routes()
Returns the router list of router.
|
Router.Status |
status()
Returns the status of router.
|
TenantId |
tenantId()
Returns the owner(tenant) of this router.
|
String |
toString() |
public DefaultRouter(RouterId id, String routerName, boolean adminStateUp, Router.Status status, boolean distributed, RouterGateway externalGatewayInfo, VirtualPortId gatewayPortId, TenantId tenantId, List<String> routes)
id - router identifierrouterName - the name of routeradminStateUp - the status of admin statestatus - the status of routerdistributed - the status of router distributedexternalGatewayInfo - the gateway info of routergatewayPortId - the port identifier of router gatewaytenantId - the tenant identifierroutes - the routes configurepublic boolean adminStateUp()
RouteradminStateUp in interface Routerpublic Router.Status status()
Routerpublic boolean distributed()
Routerdistributed in interface Routerpublic RouterGateway externalGatewayInfo()
RouterexternalGatewayInfo in interface Routerpublic VirtualPortId gatewayPortid()
RoutergatewayPortid in interface Routerpublic TenantId tenantId()
Routerpublic List<String> routes()
Router