Skip to content

eait-itig/sdc-net-agent

 
 

Repository files navigation

sdc-net-agent

This repository is part of the Joyent Triton project. See the contribution guidelines and general documentation at the main Triton project page.

The SDC Networking agent is a library for keeping track of per VM NIC changes on a Triton data center. There is one Networking agent installed per Compute Node. NIC changes trigger updates on NAPI so data is persisted.

Development

Typically sdc-net-agent development is done by:

  • making edits to a clone of sdc-net-agent.git on a Mac (likely Linux too, but that's untested) or a SmartOS development zone,

      git clone [email protected]:joyent/sdc-net-agent.git
      cd sdc-net-agent
      git submodule update --init   # not necessary first time
      vi
    
  • building:

      make all
      make check
    
  • syncing changes to a running SDC (typically a COAL running locally in VMWare) via: ./tools/rsync-to coal

  • then testing changes in that SDC (e.g. COAL). See "Testing" below for running the test suite.

Testing

At the moment, sdc-net-agent testing is done by running the VMAPI test suite. SSH into a running SDC and run the following commands:

touch /lib/sdc/.sdc-test-no-production-data
/zones/`vmadm lookup -1 alias=vmapi0`/root/opt/smartdc/vmapi/test/runtests

The net-agent SMF service log can be inspected while running the VMAPI tests by calling:

tail -f `svcs -L net-agent` | bunyan

About

Triton agent for the internal networking API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.0%
  • Shell 11.4%
  • Makefile 2.6%