Skip to content
forked from GIC-de/PyANCP

Python ANCP (RFC 6320) Client and Library

License

Notifications You must be signed in to change notification settings

Istvan91/PyANCP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Documentation Status Coverage Status Version Downloads Python Versions License

PyANCP

Python ANCP (RFC 6320) client and library. PyANCP requires Python 2.7 or later, or Python 3.2 or later.

State: BETA

ANCP Library Example:

from ancp.client import Client
from ancp.subscriber import Subscriber

# setup ancp session
client = Client(address="1.2.3.4")
if client.connect():
    # create ancp subscribers
    S1 = Subscriber(aci="0.0.0.0 eth 1", up=1024, down=16000)
    S2 = Subscriber(aci="0.0.0.0 eth 2", up=2048, down=32000)
    # send port-up for ancp subscribers
    client.port_up([S1, S2])
    # keep session active
    try:
        while client.established.is_set():
            time.sleep(1)
    except KeyboardInterrupt:
        # send port-down for ancp subscribers
        client.port_down([S1, S2])
        client.disconnect()

Author: Christian Giese and Wolfgang Beck

Contributors:

  • Istvan Ruzman

About

Python ANCP (RFC 6320) Client and Library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%