Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

 

Interfaces

  • show interfaces
Code Block
languagenone
chassis:showInterfaces resourceType:resourceName

...

  • Add/down interface
Code Block
languagenone
chassis:up resourceType:resourceName fe-0/1/2
chassis:down resourceType:resourceName fe-0/1/2

...

  • Create/DeleteSubInterface
Code Block
languagenone
chassis:createSubInterface resourceType:resourceName fe-0/1/2.12 -d "FE interface description" --vlanId 12
chassis:createSubInterface resourceType:resourceName lt-0/0/1.12 -d "LT interface description" --peerUnit 11

chassis:deleteSubInterface resourceType:resourceName fe-0/1/2.12
chassis:deleteSubInterface resourceType:resourceName lt-0/0/1.12

 

  • setEncapsulation

...

code
Code Block
language
none
chassis:setEncapsulation resourceType:resourceName lt-0/0/1.12 [vlanId]
Infowarning

Specifying a vlanId in an ethernet (fe/ge...) subinterface, causes the physical interface hosting it to use vlan-tagging. Once an interface is working has vlan-tagging set, it cannot be removed.

This behaviour is due to an identified bug in the code (OPENNAAS-95). Commands regarding serEncapsulation may change near in the future to solve this issue.

Due to mentioned bug, setEncapsulation command does not accept ethernet interfaces. Instead, vlanId may be specified on createSubInterface command

 

Logical routers

  • list logical routers
Code Block
languagenone
chassis:listLogicalRouter resourceType:resourceName 

 

 

  • create/delete logical router
Code Block
languagenone
chassis:createLogicalRouter resourceType:resourceName logicalRouterName
chassis:deleteLogicalRouter resourceType:resourceName logicalRouterName

 

 

  • Add/Remove interface to logical router
Code Block
languagenone
chassis:addInterface resourceType:resourceName resourceType:logicalRouterName fe-0/0/1
chassis:removeInterface resourceType:resourceName resourceType:logicalRouterName fe-0/0/1