be.ac.ulg.montefiore.run.totem.domain.bgp
Class BgpFieldsCreation
java.lang.Object
be.ac.ulg.montefiore.run.totem.domain.bgp.BgpFieldsCreation
public class BgpFieldsCreation
- extends java.lang.Object
This class provides methods to add iBGP/eBGP sessions informations to an XML domain file.
It can create the corresponding full mesh of iBGP sessions, and read eBGP sessions in a
BGP MRT dump.
Creation date: 03/03/2005
- Author:
- Olivier Delcourt (delcourt@run.montefiore.ulg.ac.be)
Method Summary |
void |
addeBGPSessions(DomainImpl domain,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
|
void |
addeBGPSessions(java.lang.String srcDomainName,
java.lang.String dstDomainName,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
This function adds eBGPSessions to an XML domain file, reading them in MRT ASCII MACHINE READABLE BGP
dump files (1 for each router is expected, in a directory named either by the IP of this router or its
identifier). |
void |
addiBGPFullMesh(DomainImpl domain)
|
void |
addiBGPFullMesh(java.lang.String srcDomainName,
java.lang.String dstDomainName)
This method adds a full mesh of iBGP sessions. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BgpFieldsCreation
public BgpFieldsCreation()
addiBGPFullMesh
public void addiBGPFullMesh(DomainImpl domain)
addiBGPFullMesh
public void addiBGPFullMesh(java.lang.String srcDomainName,
java.lang.String dstDomainName)
- This method adds a full mesh of iBGP sessions. It supposes that no BGP fields are already defined
in the domain XML file!
- Parameters:
srcDomainName
- the source domain XML file namedstDomainName
- the destination domain XML file name
addeBGPSessions
public void addeBGPSessions(DomainImpl domain,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
throws java.lang.Exception
- Throws:
java.lang.Exception
addeBGPSessions
public void addeBGPSessions(java.lang.String srcDomainName,
java.lang.String dstDomainName,
java.lang.String BGPbaseDirectory,
java.lang.String BGPdirFileName)
throws java.lang.Exception
- This function adds eBGPSessions to an XML domain file, reading them in MRT ASCII MACHINE READABLE BGP
dump files (1 for each router is expected, in a directory named either by the IP of this router or its
identifier). This function supposes that basic BGP fields are already created. It can for example be run
after addiBGPFullMesh.
- Parameters:
srcDomainName
- the source XML domain file namedstDomainName
- the destination domain file nameBGPbaseDirectory
- the base directory containing directories named following the identifier or IP of the concerned routerBGPdirFileName
- the date/hour of the rib capture, name of the BGP dump files should be ribYYYYMMDDHHMM
- Throws:
java.lang.Exception
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.