Module net

  • License: Apache 2.0

  • Version: 1.1.3

  • This module requires compiler version 2020.1 or higher

Typedefs

typedef net::mac_addr
  • Base type string

  • Type constraint std::validate_type('pydantic.constr',self,{'regex': '^([0-9a-fA-F]{2})(:[0-9a-fA-F]{2}){5}|$', 'strict': True})

typedef net::vlan_id
  • Base type int

  • Type constraint std::validate_type('pydantic.conint',self,{'ge': 0, 'lt': 4096})

Entities

entity net::Interface

Parents: std::Entity

This interface models an ethernet network interface.

attribute net::mac_addr mac=''
attribute string name
attribute number mtu=1500
attribute bool vlan=false
relation std::Host host [1]

Host ethernet interface are always placed inside a host

other end: std::Host.ifaces [0:*]

The following implements statements select implementations for this entity: