package org.freertr.serv; import org.freertr.addr.addrIP; import org.freertr.cfg.cfgVrf; import org.freertr.ip.ipFwdMcast; import org.freertr.prt.prtGenServ; import org.freertr.tab.tabAceslstN; import org.freertr.tab.tabConnect; import org.freertr.tab.tabGen; import org.freertr.tab.tabIndex; import org.freertr.tab.tabListing; import org.freertr.tab.tabNatTraN; import org.freertr.tab.tabPbrN; import org.freertr.tab.tabPrfxlstN; import org.freertr.tab.tabRoute; import org.freertr.tab.tabRouteEntry; import org.freertr.tab.tabRtrmapN; import org.freertr.tab.tabRtrplcN; /** * one p4lang vrf * * @author matecsaba */ public class servP4langVrf implements Comparable { /** * vrf id */ protected int id; /** * vrf handler */ protected cfgVrf vrf; /** * exported copp */ protected tabListing, addrIP> conn4c = null; /** * exported copp */ protected tabListing, addrIP> copp6c = null; /** * exported copp */ protected tabListing, addrIP> copp4p = null; /** * exported copp */ protected tabListing, addrIP> copp6p = null; /** * exported copp */ protected tabListing, addrIP> copp4f = new tabListing, addrIP>(); /** * exported copp */ protected tabListing, addrIP> copp6f = new tabListing, addrIP>(); /** * export prefix list */ protected tabListing prflst4; /** * export prefix list */ protected tabListing prflst6; /** * export route map */ protected tabListing roumap4; /** * export route map */ protected tabListing roumap6; /** * export route policy */ protected tabListing roupol4; /** * export route policy */ protected tabListing roupol6; /** * export compressed fib */ protected boolean compress4; /** * export compressed fib */ protected boolean compress6; /** * sent multicast */ protected boolean sentMcast; /** * sent routes */ protected tabGen>> routed4 = new tabGen>>(); /** * sent routes */ protected tabGen>> routed6 = new tabGen>>(); /** * sent routes */ protected tabRoute routes4 = new tabRoute("sent"); /** * sent routes */ protected tabRoute routes6 = new tabRoute("sent"); /** * sent sockets */ protected tabConnect udp4 = new tabConnect(new addrIP(), "sent"); /** * sent sockets */ protected tabConnect udp6 = new tabConnect(new addrIP(), "sent"); /** * sent sockets */ protected tabConnect tcp4 = new tabConnect(new addrIP(), "sent"); /** * sent sockets */ protected tabConnect tcp6 = new tabConnect(new addrIP(), "sent"); /** * sent mroutes */ protected tabGen mroutes4 = new tabGen(); /** * sent mroutes */ protected tabGen mroutes6 = new tabGen(); /** * sent mroutes */ protected tabGen> mrouted4 = new tabGen>(); /** * sent mroutes */ protected tabGen> mrouted6 = new tabGen>(); /** * sent nat config */ protected tabListing, addrIP> natCfg4; /** * sent nat config */ protected tabListing, addrIP> natCfg6; /** * sent nat config */ protected tabListing, addrIP> natCfg4f; /** * sent nat config */ protected tabListing, addrIP> natCfg6f; /** * sent pbr config */ protected tabListing pbrCfg4; /** * sent pbr config */ protected tabListing pbrCfg6; /** * sent flowspec config */ protected tabListing, addrIP> flwSpc4; /** * sent flowspec config */ protected tabListing, addrIP> flwSpc6; /** * sent nat translations */ protected tabGen natTrns4 = new tabGen(); /** * sent nat translations */ protected tabGen natTrns6 = new tabGen(); /** * sent polka indexes */ protected tabGen>> indexUs4 = new tabGen>>(); /** * sent polka indexes */ protected tabGen>> indexUs6 = new tabGen>>(); /** * sent polka indexes */ protected tabGen> indexUd4 = new tabGen>(); /** * sent polka indexes */ protected tabGen> indexUd6 = new tabGen>(); /** * sent mpolka indexes */ protected tabGen>> indexCs4 = new tabGen>>(); /** * sent mpolka indexes */ protected tabGen>> indexCs6 = new tabGen>>(); /** * sent mpolka indexes */ protected tabGen> indexCd4 = new tabGen>(); /** * sent mpolka indexes */ protected tabGen> indexCd6 = new tabGen>(); /** * create instance * * @param i id */ protected servP4langVrf(int i) { id = i; } public int compareTo(servP4langVrf o) { if (id < o.id) { return -1; } if (id > o.id) { return +1; } return 0; } /** * clear tables */ protected void doClear() { copp4p = null; copp6p = null; copp4f = new tabListing, addrIP>(); copp6f = new tabListing, addrIP>(); routed4 = new tabGen>>(); routed6 = new tabGen>>(); routes4 = new tabRoute("sent"); routes6 = new tabRoute("sent"); mroutes4 = new tabGen(); mroutes6 = new tabGen(); mrouted4 = new tabGen>(); mrouted6 = new tabGen>(); sentMcast = false; natCfg4 = new tabListing, addrIP>(); natCfg4f = new tabListing, addrIP>(); natCfg6 = new tabListing, addrIP>(); natCfg6f = new tabListing, addrIP>(); natTrns4 = new tabGen(); natTrns6 = new tabGen(); pbrCfg4 = new tabListing(); pbrCfg6 = new tabListing(); flwSpc4 = new tabListing, addrIP>(); flwSpc6 = new tabListing, addrIP>(); udp4 = new tabConnect(new addrIP(), "sent"); udp6 = new tabConnect(new addrIP(), "sent"); tcp4 = new tabConnect(new addrIP(), "sent"); tcp6 = new tabConnect(new addrIP(), "sent"); indexUs4 = new tabGen>>(); indexUs6 = new tabGen>>(); indexUd4 = new tabGen>(); indexUd6 = new tabGen>(); indexCs4 = new tabGen>>(); indexCs6 = new tabGen>>(); indexCd4 = new tabGen>(); indexCd6 = new tabGen>(); } }