Configuration the nrm file is typically the most confusing parts of setting up OpenNSA. In short the NRM file defines the ports available through the NSI protocol, as OpenNSA does not make everything available. An NRM is line based and typically looks like this:
# type name remote label bandwith interface attributes ethernet ps - vlan:1780-1799,2000 1000 em0 user=johndoe@example.org ethernet bon bonaire.net:topology#arb(-in|-out) vlan:1780-1799 1000 em3 restricttransit ethernet cur curacao.net:topology#arb(-in|-out) vlan:1780-1799 1000 em3 restricttransit,hostdn=curacao.example.net |
Each line describes a port.
The port type. Only ethernet is recognized at the moment. Bidirectional is implied here.
The name of the port. The port address will be a URN with the network and port name in it.
The network and port the port is connected to. Format:
network#port(-inprefix|-outprefix)
Use '-' if not connected to any network (local termination port).
Port configuration options. Only VLANs supported for now. Can specify single values and ranges. Comma seperated.
Use '-' if no labels are to be used (i.e., trunk for vlan).
The available bandwidth on the port (or the bandwidth that is available to OpenNSA).
The port on the corresponding NRM / network equipment.